package com.zjs.dao.vo;

import lombok.Data;

import java.util.List;

/**
 * 评论vo
 */
@Data
public class CommentVo {
    //分布式id太长了，防止前端 精度损失 把id转为string
    //    @JsonSerialize(using = ToStringSerializer.class)
    private String id;
    //给谁评论
    private UserVo author;
    //内容
    private String content;
    //子评论
    private List<CommentVo> childrens;
    //创建时间
    private String createDate;
    //层级
    private Integer level;
    //给谁评论
    private UserVo toUser;
}
